# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'mainwindow.ui',
# licensing of 'mainwindow.ui' applies.
#
# Created: Sat Mar 12 21:39:57 2022
#      by: pyside2-uic  running on PySide2 5.13.1
#
# WARNING! All changes made in this file will be lost!

from PySide2 import QtCore, QtGui, QtWidgets

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(834, 568)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pdfPreview = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pdfPreview.sizePolicy().hasHeightForWidth())
        self.pdfPreview.setSizePolicy(sizePolicy)
        self.pdfPreview.setObjectName("pdfPreview")
        self.horizontalLayout.addWidget(self.pdfPreview)
        self.vertialLayout = QtWidgets.QVBoxLayout()
        self.vertialLayout.setSpacing(0)
        self.vertialLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.vertialLayout.setObjectName("vertialLayout")
        self.treeWidget = QtWidgets.QTreeWidget(self.centralwidget)
        self.treeWidget.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth())
        self.treeWidget.setSizePolicy(sizePolicy)
        self.treeWidget.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setText(0, "1")
        self.treeWidget.header().setVisible(False)
        self.vertialLayout.addWidget(self.treeWidget)
        self.logtxt = QtWidgets.QTextEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.logtxt.sizePolicy().hasHeightForWidth())
        self.logtxt.setSizePolicy(sizePolicy)
        self.logtxt.setObjectName("logtxt")
        self.vertialLayout.addWidget(self.logtxt)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.minus10 = QtWidgets.QToolButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.minus10.sizePolicy().hasHeightForWidth())
        self.minus10.setSizePolicy(sizePolicy)
        self.minus10.setMinimumSize(QtCore.QSize(40, 40))
        self.minus10.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.minus10.setObjectName("minus10")
        self.horizontalLayout_3.addWidget(self.minus10)
        self.minus5 = QtWidgets.QToolButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.minus5.sizePolicy().hasHeightForWidth())
        self.minus5.setSizePolicy(sizePolicy)
        self.minus5.setMinimumSize(QtCore.QSize(40, 40))
        self.minus5.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.minus5.setObjectName("minus5")
        self.horizontalLayout_3.addWidget(self.minus5)
        self.minus1 = QtWidgets.QToolButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.minus1.sizePolicy().hasHeightForWidth())
        self.minus1.setSizePolicy(sizePolicy)
        self.minus1.setMinimumSize(QtCore.QSize(40, 40))
        self.minus1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.minus1.setObjectName("minus1")
        self.horizontalLayout_3.addWidget(self.minus1)
        self.add1 = QtWidgets.QToolButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.add1.sizePolicy().hasHeightForWidth())
        self.add1.setSizePolicy(sizePolicy)
        self.add1.setMinimumSize(QtCore.QSize(40, 40))
        self.add1.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.add1.setObjectName("add1")
        self.horizontalLayout_3.addWidget(self.add1)
        self.add5 = QtWidgets.QToolButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.add5.sizePolicy().hasHeightForWidth())
        self.add5.setSizePolicy(sizePolicy)
        self.add5.setMinimumSize(QtCore.QSize(40, 40))
        self.add5.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.add5.setObjectName("add5")
        self.horizontalLayout_3.addWidget(self.add5)
        self.add10 = QtWidgets.QToolButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.add10.sizePolicy().hasHeightForWidth())
        self.add10.setSizePolicy(sizePolicy)
        self.add10.setMinimumSize(QtCore.QSize(40, 40))
        self.add10.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.add10.setObjectName("add10")
        self.horizontalLayout_3.addWidget(self.add10)
        self.vertialLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.offset = QtWidgets.QSpinBox(self.centralwidget)
        self.offset.setMinimum(-500)
        self.offset.setMaximum(500)
        self.offset.setObjectName("offset")
        self.horizontalLayout_2.addWidget(self.offset)
        self.pInc = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pInc.sizePolicy().hasHeightForWidth())
        self.pInc.setSizePolicy(sizePolicy)
        self.pInc.setObjectName("pInc")
        self.horizontalLayout_2.addWidget(self.pInc)
        self.vertialLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout.addLayout(self.vertialLayout)
        self.horizontalLayout.setStretch(0, 6)
        self.horizontalLayout.setStretch(1, 5)
        self.gridLayout_2.addLayout(self.horizontalLayout, 0, 1, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 834, 26))
        self.menubar.setObjectName("menubar")
        self.menu = QtWidgets.QMenu(self.menubar)
        self.menu.setObjectName("menu")
        MainWindow.setMenuBar(self.menubar)
        self.toolBar = QtWidgets.QToolBar(MainWindow)
        self.toolBar.setEnabled(True)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionOpenInfo = QtWidgets.QAction(MainWindow)
        self.actionOpenInfo.setObjectName("actionOpenInfo")
        self.actionSaveInfo = QtWidgets.QAction(MainWindow)
        self.actionSaveInfo.setObjectName("actionSaveInfo")
        self.actionOpenPDF = QtWidgets.QAction(MainWindow)
        self.actionOpenPDF.setObjectName("actionOpenPDF")
        self.actionSavePDF = QtWidgets.QAction(MainWindow)
        self.actionSavePDF.setObjectName("actionSavePDF")
        self.menu.addAction(self.actionOpenPDF)
        self.menu.addAction(self.actionSavePDF)
        self.menu.addSeparator()
        self.menu.addAction(self.actionOpenInfo)
        self.menu.addAction(self.actionSaveInfo)
        self.menubar.addAction(self.menu.menuAction())
        self.toolBar.addAction(self.actionOpenPDF)
        self.toolBar.addAction(self.actionSavePDF)
        self.toolBar.addAction(self.actionOpenInfo)
        self.toolBar.addAction(self.actionSaveInfo)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtWidgets.QApplication.translate("MainWindow", "MainWindow", None, -1))
        self.pdfPreview.setText(QtWidgets.QApplication.translate("MainWindow", "TextLabel", None, -1))
        self.minus10.setText(QtWidgets.QApplication.translate("MainWindow", "-10", None, -1))
        self.minus5.setText(QtWidgets.QApplication.translate("MainWindow", "-5", None, -1))
        self.minus1.setText(QtWidgets.QApplication.translate("MainWindow", "-1", None, -1))
        self.add1.setText(QtWidgets.QApplication.translate("MainWindow", "+1", None, -1))
        self.add5.setText(QtWidgets.QApplication.translate("MainWindow", "+5", None, -1))
        self.add10.setText(QtWidgets.QApplication.translate("MainWindow", "+10", None, -1))
        self.pInc.setText(QtWidgets.QApplication.translate("MainWindow", "页码偏移", None, -1))
        self.menu.setTitle(QtWidgets.QApplication.translate("MainWindow", "文件", None, -1))
        self.toolBar.setWindowTitle(QtWidgets.QApplication.translate("MainWindow", "toolBar", None, -1))
        self.actionOpenInfo.setText(QtWidgets.QApplication.translate("MainWindow", "导入书签", None, -1))
        self.actionOpenInfo.setToolTip(QtWidgets.QApplication.translate("MainWindow", "导入书签", None, -1))
        self.actionSaveInfo.setText(QtWidgets.QApplication.translate("MainWindow", "导出书签", None, -1))
        self.actionSaveInfo.setToolTip(QtWidgets.QApplication.translate("MainWindow", "导出书签", None, -1))
        self.actionOpenPDF.setText(QtWidgets.QApplication.translate("MainWindow", "打开PDF", None, -1))
        self.actionOpenPDF.setToolTip(QtWidgets.QApplication.translate("MainWindow", "打开PDF", None, -1))
        self.actionSavePDF.setText(QtWidgets.QApplication.translate("MainWindow", "保存PDF", None, -1))
        self.actionSavePDF.setToolTip(QtWidgets.QApplication.translate("MainWindow", "保存PDF", None, -1))

